.PHONY:all
all:publish_client consume_client

publish_client : publish_client.cc ../mqcommon/mq_proto.pb.cc ../mqcommon/mq_msg.pb.cc ../mqthird/include/muduo/protobuf/codec.cc
	g++ -g -std=c++11 $^ -o $@ -I../mqthird/include -L../mqthird/lib  -lmuduo_net -lmuduo_base -pthread -lprotobuf -lz

consume_client : consume_client.cc ../mqcommon/mq_proto.pb.cc ../mqcommon/mq_msg.pb.cc ../mqthird/include/muduo/protobuf/codec.cc
	g++ -g -std=c++11 $^ -o $@ -I../mqthird/include -L../mqthird/lib  -lmuduo_net -lmuduo_base -pthread -lprotobuf -lz

.PHONY:clean
clean:
	rm -rf publish_client consume_client 
